#coding=utf-8
from django.contrib import admin
from redirector.models import Campaign, Resource, Person,AccessRecord

class ResourceAdmin(admin.ModelAdmin):
    list_display = ('id', 'name', 'created_at', 'times')

class AccessRecordAdmin(admin.ModelAdmin):
    list_display = ( '__unicode__', 'acessed_at')

admin.site.register(Resource, ResourceAdmin)
admin.site.register(AccessRecord, AccessRecordAdmin)
admin.site.register(Campaign)
admin.site.register(Person)


